Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #1458

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Dev #1458

wants to merge 6 commits into from

Conversation

rubenlagus
Copy link
Owner

No description provided.

@Override
public void validate() throws TelegramApiValidationException {
if (userId == 0) {
throw new TelegramApiValidationException("UserId parameters must not be 0", this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UserId parameters

parameter shouldn't be plural

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an inconsistency in the user id validation messages. Probably a constant or even separate validator will be needed in the future to avoid such mistakes. I'll probably provide some PR later.

*/
@JsonProperty(IS_CANCELLED_FIELD)
@NonNull
private Boolean isCancelled;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both canceled and cancelled are acceptable, but since Bot API uses single 'l' character, isn't is better to stick to official parameter naming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants